

C_SRCS:=MyServer.c threadPool.c mytools/getValInJSON/getValInJSON.c mytools/taskQueue/taskQueue.c mytools/mysql/m_Mysql.c mytools/tcplink/tcplink.c mytools/epoll/epoll.c ../Func/m_md5.c worker/worker.c ../Func/transmit.c worker/assignJob.c worker/signup.c worker/login.c worker/fileOperation.c
C_OBJS:=$(patsubst %.c,%.o,$(C_SRCS))
CC:=gcc

# 链接make
# echo $(C_OBJS)
MyServer:$(C_OBJS)
	$(CC) -o $@ $^ -pthread -lmysqlclient -lcrypt -lcrypto -lssl
%.o:%.c 
	$(CC) -o $@ -c $^
clean:
	rm -rf MyServer

.PHONY:makeServer clean_o
makeServer:MyServer 
	rm -rf $(C_OBJS)
clean_o:
	rm -rf $(C_OBJS)